package com.cg.service;

import com.cg.entity.Category;

import java.util.List;

public interface CategoryService {

    //分类列表
    List<Category> categoryList(Integer userId,String searchName);

    //添加category
    void addcategory(String categoryName, Integer userId);

    //查询
    Category findCategoryById(Integer categoryId);

    //修改信息
    void editcategory(Category category);

    void deletecategory(Integer categoryId);

    Category findCategoryByName(String categoryName,Integer userId);
}
